# -*- encoding: utf-8 -*-
"""

PyCharm split函数的使用
2024年10月20日11时06分
by wenyang

"""


def main():
    str_one = "hello world"
    print(str_one.split(sep = " ")) # 就是按照空格进行分隔
    str_one = "hello world javascript python c++ c rust java kotlin"
    print(str_one.split(sep = " "))
    print(str_one.split(sep = "a"))



if __name__ == "__main__":
    main()
